package cn.ffcs.uec.post.manager.impl;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import cn.ffcs.uec.post.dao.UecPostDao;
import cn.ffcs.uec.post.manager.UecPostManager;
import cn.ffcs.uec.post.model.UecPost;
import cn.ffcs.uec.post.vo.BasePostVo;
import cn.ffcs.uom.common.vo.PageInfo;

@Service("uecPostManager")
@Scope("prototype")
public class UecPostManagerImpl implements UecPostManager {

	@Resource
	private UecPostDao uecPostDao;

	@Override
	public PageInfo queryPageInfoByUecPost(UecPost uecPost, int current, int pageSize) {
		return uecPostDao.queryPageInfoByUecPost(uecPost, current, pageSize);
	}

	@Override
	public UecPost queryUecPost(UecPost uecPost) {
		return uecPostDao.queryUecPost(uecPost);
	}

	@Override
	public String getUecPostNameByPkPost(String pkPost) {
		return uecPostDao.getUecPostNameByPkPost(pkPost);
	}

	@Override
	public BasePostVo getPreviousBasePostByCode(String code) {
		return uecPostDao.getPreviousBasePostByCode(code);
	}


}
